package com.jokins.admin.ios.sections.controller;

import com.jokins.admin.ios.sections.service.BookSectionService;
import com.jokins.admin.ios.sections.vo.BookSectionVo;
import com.jokins.common.util.ResultData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 〈〉<br>
 *
 * @author Mr.Wang
 * @create 2025/2/7
 */
@RestController
@RequestMapping("/ios/sections")
public class BookSectionsController {

    @Autowired
    private BookSectionService bookSectionService;

    @GetMapping("/getSectionsList")
    public ResultData getSectionsList() {
        List<BookSectionVo> bookSectionVoList = bookSectionService.getSectionsList();
        Map reMap=new HashMap<>();
        reMap.put("bookSectionVoList",bookSectionVoList);
        return new ResultData("获取成功！",reMap);
    }
}